package com.biostime.qdingding.modules.qd.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.biostime.qdingding.common.persistence.Page;
import com.biostime.qdingding.common.service.CrudService;
import com.biostime.qdingding.modules.qd.dao.ActivitymemberDao;
import com.biostime.qdingding.modules.qd.entity.Activitymember;

/**
 * 会员活动Service
 * @author king
 * @version 2015-12-15
 */
@Service
@Transactional(readOnly = true)
public class ActivitymemberService extends CrudService<ActivitymemberDao, Activitymember> {
	
	@Override
	public Page<Activitymember> findPage(Page<Activitymember> page,
			Activitymember entity) {
		dataScopeFilter(entity, "dsf", "id=b.center_id", "id=b.create_by");
		return super.findPage(page, entity);
	}
	
}
